//
//  HeadNameView.h
//  mcrmSAAS
//
//  Created by wjxfhxy on 14-6-5.
//  Copyright (c) 2014年 GuangZhouXuanWu. All rights reserved.
//

#import <UIKit/UIKit.h>

@class HeadNameViewPanel;

@protocol HeadNameViewPanelDelegate <NSObject>

-(void)headNameViewPanel:(HeadNameViewPanel*)panel resizeNewHeight:(CGFloat)height;

-(void)headNameViewPanel:(HeadNameViewPanel*)panel clickAddBtn:(id)sender;

//-(void)headNameViewPanel:(HeadNameViewPanel*)panel clickDeleteBtn:(id)sender;

-(void)headNameViewPanel:(HeadNameViewPanel*)panel clickDeleteMaskBtn:(NSString*)szTag;

-(void)headNameViewPanel:(HeadNameViewPanel *)panel clickNormalStateBtn:(NSString*)szTag;

@end

extern CGFloat const HeadNameViewPanelDefaultHeight;

@interface HeadNameViewPanel : UIView

@property(nonatomic,assign) BOOL showEditBtn;

@property(nonatomic,assign) NSUInteger maxHeadName;

-(id)initWithFrame:(CGRect)frame delegate:(id<HeadNameViewPanelDelegate>)delegate;

-(void)addHeadNameViewWithImage:(UIImage*)headImage name:(NSString*)name andTag:(NSString*)szTag;

-(void)insertHeadNameViewAtIndex:(NSUInteger)index withImage:(UIImage*)headImage name:(NSString*)name andTag:(NSString*)szTag;

-(void)removeHeadViewWithTag:(NSString*)szTag;

-(void)reloadHeadNameViewWithBlock:(void(^)(void(^fun)(UIImage *headImage,NSString* name,NSString *szTag)))reloadHeadNameView;

-(void)refreshHeadImage:(UIImage*)headImage withTag:(NSString*)szTag;

-(void)setStickHeadViewWithTag:(NSString*)szTag;

-(void)resetHeadViewDeleteTag;

@end
